Hotword recognition

ABSTRACT

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for receiving audio data corresponding to an utterance, determining that the audio data corresponds to a hotword, generating a hotword audio fingerprint of the audio data that is determined to correspond to the hotword, comparing the hotword audio fingerprint to one or more stored audio fingerprints of audio data that was previously determined to correspond to the hotword, detecting whether the hotword audio fingerprint matches a stored audio fingerprint of audio data that was previously determined to correspond to the hotword based on whether the comparison indicates a similarity between the hotword audio fingerprint and one of the one or more stored audio fingerprints that satisfies a predetermined threshold, and in response to detecting that the hotword audio fingerprint matches a stored audio fingerprint, disabling access to a computing device into which the utterance was spoken.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of U.S. application Ser. 14/943,287,filed Nov. 17, 2015, which claims the benefit of U.S. ProvisionalApplication No. 62/242,650, filed Oct. 16, 2015, the contents of each ofwhich is hereby incorporated by reference.

FIELD

The present specification generally relates to speech recognition.

BACKGROUND

Automatic speech recognition is an important technology that is used incomputing devices. A speech recognition service for an electronic devicegenerally receives the vocal utterances that include spoken words from auser, and transcribes the spoken words into text. Vocal utterances mayinclude a hotword, i.e., a predetermined reserved word that causes asystem or device to perform a corresponding action or actions.

SUMMARY

Implementations of the present disclosure relate to hotword recognition,for example, using a hotword to unlock or enable access to a mobiledevice via voice, and inhibiting replay attacks. A replay attack is theprocess by which an unauthorized user captures the audio for a hotwordspoken by the device's owner or authorized user, and replays it in orderto gain some level of unauthorized access to the device. According toimplementations of the disclosure, hotword or any speech-based replayattacks may be inhibited by verifying the uniqueness of each utterance.In particular, the most recent, last N, or all hotword utterances thatwere recognized for a particular device or for a particular user may berecorded and stored. An audio fingerprint may be generated and storedfor each hotword utterance, and a comparison may be performed betweenthe audio fingerprint generated from a new utterance with eachpreviously recorded audio fingerprint to check whether the sameutterance audio has been previously used, indicating a replay. Inaddition, in certain implementations, other signals, e.g., ultrasonicaudio injection and cross-utterance verification, may be used to furtherlimit the effectiveness of replay attacks.

One innovative aspect of the subject matter described in thisspecification is embodied in methods that include the actions ofreceiving audio data corresponding to an utterance; determining that theaudio data corresponds to a hotword; generating a hotword audiofingerprint of the audio data that is determined to correspond to thehotword; determining a similarity between the hotword audio fingerprintand one or more stored audio fingerprints of audio data that waspreviously determined to correspond to the hotword; detecting whetherthe hotword audio fingerprint matches a stored audio fingerprint ofaudio data that was previously determined to correspond to the hotwordbased on whether the similarity between the hotword audio fingerprintand one of the one or more stored audio fingerprints satisfies apredetermined threshold; and in response to detecting that the hotwordaudio fingerprint matches a stored audio fingerprint, disabling accessto a computing device into which the utterance was spoken.

In general, another aspect of the subject matter described in thisspecification may be embodied in methods that include the actions ofreceiving additional audio data corresponding to an additionalutterance; identifying speaker-identification d-vectors using theadditional audio data; determining a similarity between thespeaker-identification d-vectors from the additional audio data andhotword d-vectors from the audio data corresponding to the utterance;detecting whether the audio data corresponding to the hotword matchesthe additional audio data based on whether the similarity between thehotword d-vectors from the audio data corresponding to the utterance andthe speaker-identification d-vectors from the additional audio datasatisfies a particular threshold; and in response to detecting that theaudio data corresponding to the hotword does not match the additionalaudio data, disabling access to the computing device.

According to another aspect of the subject matter described in thisspecification, the hotword may be a particular term that triggerssemantic interpretation of an additional term of one or more terms thatfollow the particular term. The additional term of one or more termsthat follow the particular term may be associated with a query orcommand.

Another aspect of the subject matter described in this specification maybe embodied in methods that include the actions of receiving additionalaudio data corresponding to a voice command or query, and determining atype of the voice command or query. Further, the predetermined thresholdmay be adjusted based on the determined type of the voice command orquery.

These and other implementations may each optionally include one or moreof the following features. For instance, determining that the audio datacorresponds to a hotword may include identifying one or more acousticfeatures of the audio data; comparing the one or more acoustic featuresof the audio data to one or more acoustic features associated with oneor more hotwords stored in a database; and determining that the audiodata corresponds to one of the one or more hotwords stored in thedatabase based on the comparison of the one or more acoustic features ofthe audio data to the one or more acoustic features associated with oneor more hotwords stored in the database.

In some implementations, determining that the audio data corresponds toa hotword includes determining that an initial portion of the audio datacorresponds to an initial portion of the hotword; and in response todetermining that the initial portion of the audio data corresponds tothe initial portion of the hotword, causing one of a plurality of uniqueultrasonic audio samples to be outputted after the initial portion ofthe audio data is received.

Another aspect of the subject matter described in this specification maybe embodied in methods that include the actions of determining that thereceived audio data comprises audio data corresponding to one of theplurality of unique ultrasonic audio samples; and in response todetermining that the received audio data comprises audio datacorresponding to one of the plurality of unique ultrasonic audiosamples, disabling access to the computing device.

Other implementations of these aspects include corresponding systems,apparatus, and computer programs, configured to perform the actions ofthe methods, encoded on computer storage devices.

The details of one or more implementations of the invention are setforth in the accompanying drawings and the description below. Otherfeatures and advantages of the invention will become apparent from thedescription, the drawings, and the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 depicts an example system for detecting and verifying a hotword,according to implementations of the invention.

FIGS. 2A and 2B depict diagrams of example processes for detecting andverifying a hotword, according to implementations of the invention.

FIG. 3 depicts an example flowchart for detecting and verifying ahotword, according to implementations of the invention.

FIG. 4 depicts a computer device and a mobile computer device that maybe used to implement the techniques described here.

Like reference numbers and designations in the various drawings indicatelike elements.

DETAILED DESCRIPTION

FIG. 1 depicts an example system 100 for detecting and verifying ahotword, according to implementations of the invention. Such a system100 may inhibit replay attacks. In some implementations system 100includes an audio subsystem 120, a hotword detector 130, an audiofingerprint generator 140, and a replay attack engine 150. In someexamples, system 100 may be embodied in a computing device, e.g., asmartphone, a laptop computer, a desktop or personal computer, a tablet,or the like, or a combination thereof. The computing device may includeany audio detection means, e.g., a microphone, for detecting utterancesfrom a user.

Implementations of the present disclosure enable hotword recognition,for example, using a hotword to unlock or enable access to a mobiledevice via voice. One way to enable that use of a hotword is throughhotword recognition that is always on. Always-on hotword recognition isthe process of continuously listening for a predefined phrase, e.g., “OKComputer”, in order to wake up a computing device and initiate anactivity. One advantage of hotword detection over running a full speechrecognizer is that hotword detection allows for highly efficient androbust recognition because only a fixed trigger phrase needs to berecognized. Further, hotword recognition may involve comparing audiofeatures of input speech with audio features of known utterances of ahotword, without performing speech recognition on the input utterance.Such operations may be performed at drastically less computationalexpense than implementing a speech recognizer.

Because the spoken hotword provides access to the device, the hotword isa particular utterance, and the hotword is spoken aloud, the use ofhotword recognition may be susceptible to replay attacks. A replayattack is the process by which an unauthorized user captures the audiofor a hotword spoken by the device's owner or authorized user, andreplays it in order to gain some level of unauthorized access to thedevice. According to implementations of the disclosure, hotword or anyspeech-based replay attacks may be inhibited by verifying the uniquenessof each utterance.

In certain implementations, always-on hotword recognition may be used incombination with speaker verification to filter out utterances that werenot spoken by the device's owner. The combination of speakerverification with hotword recognition is advantageous because hotwordrecognition is text-dependent, i.e., the spoken utterance is the samefor a given hotword.

In some implementations, the user may say one or more words that thecomputing device detects as an utterance. The utterance may include oneor more hotwords, or partial hotwords, that cause an action to beperformed by the computing device.

In certain implementations, when the computing device is locked, ahotword may act as a way to gain partial or full access to the device.For example, if a user says “OK Computer” when the screen is off and/orthe device is locked, and the speaker profile is successfully verified,certain queries may be allowed that access private or sensitive data,such as “when is my next meeting,” “send a message to Boss,” or thelike. In some implementations, a hotword may allow the user to performvoice actions such as “send an email”, or may be used to fully unlockthe device, particularly when combined with additional contextualsignals such as location.

As depicted in the illustrated example, the user may say, for example,“OK Computer.” The computing device may detect the utterance “OKComputer” 110 with the audio subsystem 120 appropriately receiving audiodata of the utterance “OK Computer” 110.

In the illustrated example, the audio subsystem 120 may receive theaudio data associated with the utterance “OK Computer” 110. The receivedaudio data may include a series of audio frames of the utterance, or apredetermined amount of time of the audio data associated with theutterance. In some implementations, the audio subsystem 120 mayprocesses the utterance to generate waveform data that includes aportion of the utterance, or substantially a whole portion of theutterance.

In some implementations, the audio subsystem 120 appropriately mayprocess the received audio data. For example, the audio subsystem 120may identify one or more acoustic features of the audio data. In theillustrated example, the audio subsystem 120 may identify acousticfeatures associated with the audio data associated with the utterance“OK Computer.”

In some implementations, the audio subsystem 120 may provide theprocessed audio data to the hotword detector 130. For example, the audiosubsystem 120 may provide the processed audio data associated with theutterance “OK Computer” to the hotword detector 130. In someimplementations, the processed audio data may include acoustic featuresassociated with the utterance “OK Computer,” audio data associated withthe utterance “OK Computer,” a transcription associated with theutterance “OK Computer,” or any combination thereof.

The hotword detector 130 may receive the processed audio data. In theillustrated example, the hotword detector 130 may receive the processedaudio data associated with the utterance “OK Computer.” The hotworddetector 130 may determine that the received audio data corresponds to ahotword. Specifically, the hotword may determine that the audio datacorresponds to a hotword. In the illustrated example, the hotworddetector 130 may determine that the audio data associated with theutterance “OK Computer” corresponds to the hotword “OK Computer.”

In some implementations, the received audio data may include associatedacoustic features, e.g., as identified by the audio subsystem 120. Thehotword detector 130 may compare the acoustic features of the audio dataassociated with the utterance “OK Computer” to acoustic featuresassociated with one or more hotwords stored in a database. Specifically,each hotword may be associated with one or more acoustic features, e.g.,phonetics of the hotword. A database, or table, may store a mappingbetween the hotwords and an associated acoustic feature(s). In someimplementations, a hotword, may be associated with two or more acousticfeatures. In some implementations, an acoustic feature may be associatedwith two or more hotwords.

Based on the comparing of acoustic features, the audio data associatedwith the utterance “OK Computer” may be determined to correspond to ahotword stored in the database. For example, it is determined that theacoustic features of the audio data associated with the utterance “OKComputer” corresponds to the hotword “OK Computer” based on thecomparison of the acoustic features of the utterance “OK Computer” andthe acoustic features of the hotword “OK Computer.” Exemplary hotwordrecognition techniques that may be used in accordance withimplementations of the present disclosure are described in U.S. Pat.Pub. No. 2015/0279351 A1, which is incorporated herein by reference; andmore specifically, the process of FIG. 6, the details of which aredepicted in FIGS. 2-5, all of which are incorporated herein byreference.

The hotword detector 130 may provide a result of the determination thatthe audio data corresponds to a hotword to the audio fingerprintgenerator 140. Specifically, in the illustrated example, the hotworddetector 130 may provide the hotword “OK Computer,” or a signalassociated with the hotword “OK Computer,” to the audio fingerprintgenerator 140.

The audio fingerprint generator 140 may receive the result of thedetermination that the audio data corresponds to the hotword from thehotword detector 130. Specifically, in the illustrated example, theaudio fingerprint generator 140 may receive audio data that correspondsto the hotword “OK Computer,” or a signal associated with the hotword“OK Computer,” from the hotword detector 130. The signal may include anindication that the audio data associated with the utterance “OKComputer” corresponds to a hotword.

The audio fingerprint generator 140 may generate a fingerprint of theaudio data associated with the utterance of the hotword. In particular,in the illustrated example, the audio fingerprint generator 140 mayprocess the audio data associated with the utterance “OK Computer,”which corresponds to a hotword, to generate an audio fingerprint of theutterance “OK Computer.”

In some implementations, audio fingerprints may be designed to allow forprecise matching in the presence of extreme noise or other distortionssuch as pitch shifts and time stretches. In addition, each respectiveaudio fingerprint is unique. For example, hotword utterances from thesame speaker in the same environmental conditions still have differentfingerprints. The audio fingerprint may include any background noise inaddition to the spoken utterance.

Any type of audio fingerprint may be used according to implementationsof the invention. For example, the audio fingerprint described in: U.S.Pat. No. 8,411,977 B1, which is incorporated herein by reference. Theaudio fingerprint may provide resistance against noise, pitch and timeshifts, which are transformations that may be applied by a replayattacker. The fingerprint may be generated by detecting time-frequencypeaks in the audio signal, which may be combined into triples andcharacterized by frequency ratios to provide invariance to pitch.

Alternatively, other features may be used to generate the fingerprint.For example, the fingerprint may consist of a series of frames offilterbank energies. The series of frames may be normalized and comparedwith a frame from another utterance using a distance function such as L2distance. According to another alternative the features used to generatethe fingerprint may be the activations of an intermediate layer in aneural network trained on a near-exact matching task.

In some implementations, the audio fingerprint generator 140 may providethe audio fingerprint of the hotword utterance to the replay attackengine 150. Specifically, in the illustrated example, the replay attackthe audio fingerprint generator 140 may provide the audio fingerprint ofthe utterance “OK Computer” to the replay attack engine 150.

The replay attack engine 150 may receive the audio fingerprint of thehotword utterance generated by the audio fingerprint generator 140. Insome implementations, the replay attack engine may access a hotwordfingerprint database 160. The hotword fingerprint database 160 may be adatabase that stores the most recent, last N, or all hotword utterancesassociated with a particular device, or with a particular user, or both.The most recent hotword utterances may be determined according to aparticular period of time. The hotword fingerprint database 160 may be adatabase that stores a particular subset of hotword utterances, forexample, those most likely to be susceptible to replay attacks. Forexample, the hotword fingerprint database 160 may store hotwordutterances that were made in public places, e.g., based on location,background noise, or the like, or any combination thereof, or that weremade outside of a trusted environment, e.g., the user's home, car,office, or the like. The hotword fingerprint database 160 may store themost recent, last N, or all hotword utterances of the particular subsetof hotword utterances.

The replay attack engine 150 may compare the audio fingerprint of thehotword utterance generated by the audio fingerprint generator 140 tothe hotword fingerprints stored in the hotword fingerprint database 160.By comparing the audio fingerprint of the hotword utterance generated bythe audio fingerprint generator 140 to the hotword fingerprints storedin the hotword fingerprint database 160, the replay attack engine 150may determine whether the hotword utterance generated by the audiofingerprint generator 140 matches one or more of the hotwordfingerprints stored in the hotword fingerprint database 160.

A pair of fingerprints may be determined to match by comparing thefingerprint or features at all pairs of times x and y in the twoutterances, i.e., the received hotword utterance and each of the storedhotword utterances. For example, fingerprints may be compared using asimilarity function, such as L2 similarity, or using a measure ofoverlap of the triple descriptors, or using a measure of overlap of theinterest points and other derived features. The similarity function maybe used to generate a graphical heatmap. A match may be detected basedupon a strong similarity along a diagonal line in the heatmap. The linemay be shifted vertically or horizontally to allow for a variable startoffset at which the match begins. The strength of the similarity may bedetected by aggregating similarity scores for all (x-y). A strong peakin the resulting histogram indicates a match between the two at someshift. The peak in the histogram may also have a wide peak if theutterance has been time stretched. Alternatively, the heatmap may beprovided as input to a classifier, which may determine whether the pairof fingerprints match. In any case, the replay attack engine 150 maydetermine a match based on a predetermined similarity threshold beingsatisfied. For example, the replay attack engine 150 may generate asimilarity score or value, and may determine whether the similarityscore or value satisfies a predetermined threshold score or value.

In some implementations, the replay attack engine 150 determining thatthe audio fingerprint of the hotword utterance generated by the audiofingerprint generator 140 matches a hotword fingerprint stored in thehotword fingerprint database 160 indicates a replay attack. Inparticular, the audio fingerprint of the utterance “OK Computer”generated by the audio fingerprint generator 140 matching an audiofingerprint stored in the hotword fingerprint database 160 indicatesthat the same utterance of “OK Computer” was previously received and isbeing replayed in an attempt to access or use the device by anunauthorized user.

In response to determining that the audio fingerprint of the hotwordutterance generated by the audio fingerprint generator 140 matches ahotword fingerprint stored in the hotword fingerprint database 160, thereplay attack engine may output a signal that prevents the device frombeing unlocked, locks the device, disables access to the device,initiates a secondary authentication process, or the like. In responseto determining that the audio fingerprint of the hotword utterancegenerated by the audio fingerprint generator 140 does not match ahotword fingerprint stored in the hotword fingerprint database 160, thereplay attack engine may output a signal that allows an action to beexecuted on the device.

FIG. 2A depicts a diagram of example processes for detecting andverifying a hotword, according to implementations of the invention. Thediagram shows states 201 to 219, which may or may not be illustrated inparticular sequence.

At 201, the audio subsystem 220 may receive audio data corresponding tothe portion of the utterance “OK Computer.” The audio subsystem 220 mayprocess the received audio data corresponding to the utterance “OKComputer” and provide the audio data to the hotword detector 230. At202, the hotword detector 230 may receive audio data corresponding tothe utterance “OK Computer” and determine whether the utterance “OKComputer” corresponds to a hotword for the device, for example, based onthe comparing of acoustic features as described above.

If the hotword detector 230 determines that the received utterance doesnot correspond to a hotword for the device, the hotword detector 230 mayprovide a signal indicating that a hotword has not been received, andthe process may restart with the audio subsystem 220 listening for anutterance. However, in response to the hotword detector 230 determiningthat the utterance “OK Computer” corresponds to a hotword for thedevice, the audio fingerprint generator 240 may generate an audiofingerprint of the utterance “OK Computer” at 203. The audio fingerprintof the utterance “OK Computer” that is generated by the audiofingerprint generator 240 may be stored at 204.

At 205, the replay attack engine 250 may receive the audio fingerprintof the utterance “OK Computer” generated by the audio fingerprintgenerator 240, and compare the generated audio fingerprint to hotwordfingerprints that are stored, for example, in a database. In particular,the replay attack engine 250 may access stored hotword fingerprints at206 for making the comparison with the audio fingerprint of theutterance “OK Computer” generated by the audio fingerprint generator240.

If the replay attack engine 150 determines no match 208 between theaudio fingerprint of the utterance “OK Computer” generated by the audiofingerprint generator 240 and one or more of the stored hotwordfingerprints, then access to the device may be granted or processing ofa query or command that follows the hotword may be enabled at 209. Ifthe replay attack engine 150 determines a match 207 between the audiofingerprint of the utterance “OK Computer” generated by the audiofingerprint generator 240 and one or more of the stored hotwordfingerprints, then access to the device may be disabled or limited at210 or the device may be prevented from unlocking, or waking, or thelike.

In some implementations, since the hotword utterance may be followed bya query or command utterance, whether the d-vectors extracted from thehotword utterance approximately match the d-vectors extracted from thequery or command utterance may be determined. The comparison between thehotword utterance and the query or command utterance may inhibit anunauthorized user's ability to replay a recorded hotword and issue a newquery or command with their own voice.

At 211, the audio subsystem 220 may receive a query or command utterancethat follows the utterance of the hotword. In the illustrated example,the audio subsystem 220 may receive the command utterance “Call Mom”after the hotword utterance “OK Computer”. The audio subsystem 220 mayprocess the received audio data corresponding to the utterance “CallMom” and provide the audio data to the hotword detector 230.

At 212, the hotword detector 230 may receive audio data corresponding tothe utterance “Call Mom” and determine whether the utterance “Call Mom”corresponds to a hotword for the device, for example, based on thecomparing of acoustic features as described above. In the illustratedexample, the hotword detector 230 may determine that the utterance “CallMom” does not correspond to a hotword. If the hotword detector 230determines that the received utterance does not correspond to a hotwordfor the device, the hotword detector 230 may provide a signal indicatingthat a hotword has not been received.

In some implementations, when it is determined that a hotword has notbeen received, it may be determined that a query or command is received.For example, in response to determining that a hotword has been receivedand verifying that there is no match with a stored hotword previouslyreceived, query or command processing may be enabled for an utterancethe follows the hotword utterance. In the illustrated example, the audiofingerprint generator 240 may generate an audio fingerprint of theutterance “Call Mom” at 213.

In some implementations, the audio fingerprint of the query or commandmay be used to perform cross-utterance verification of the hotword. Inparticular, at 214, the replay attack engine 250 may receivespeaker-identification d-vectors generated from the utterance “CallMom”, and compare the generated speaker-identification d-vectors of theutterance “Call Mom” to generated hotword d-vectors of the utterance “OKComputer”. In some implementations, the replay attack engine 250 maycompare the speaker-identification d-vectors of the utterance “Call Mom”to hotword d-vectors of the utterance “OK Computer” that are stored, forexample, in a database.

If the replay attack engine 150 determines a match 215 between the audiodata corresponding to the utterance “OK Computer” and the audio datacorresponding to the utterance “Call Mom”, then access to the device maybe granted or processing of a query or command that follows the hotwordmay be executed at 219. If the replay attack engine 150 determines nomatch 208 between the audio data corresponding to the utterance “OKComputer” and the audio data corresponding to the utterance “Call Mom”,then, at 218, the query or command may not be executed, access to thedevice may be disabled or limited, a secondary authentication processmay be initiated, or the device may be prevented from unlocking, orwaking, or the like, or any combination thereof. Alternatively, in asimilar process, the audio data corresponding to the hotword utterancemay be compared to any prior utterance received and stored.

As described above, the replay attack engine 150 may generate asimilarity score or value for the comparison of the generated audiofingerprint of the utterance “Call Mom” to the generated hotwordfingerprint of the utterance “OK Computer”, and may determine whetherthe similarity score or value satisfies a predetermined threshold scoreor value. In some implementations, the context of the query or commandmay be determined. The determined context of the query or command may beused, for example, to weight the similarity score or value or to adjustthe predetermined threshold score or value.

For example, if the context of the command or query indicates a lowerlevel of sensitivity with regards to personal or private data, then thesimilarity score or value may be weighted or the predetermined thresholdscore or value may be adjusted to more often allow the query or commandto be executed regardless of a close similarity between the generatedaudio fingerprint of the utterance “Call Mom” and the generated hotwordfingerprint of the utterance “OK Computer”. Conversely, if the contextof the command or query indicates a higher level of sensitivity, thenthe similarity score or value may be weighted or the predeterminedthreshold score or value may be adjusted to less often allow the queryor command to be executed, e.g., requiring a closer similarity betweenthe generated audio fingerprint of the utterance “Call Mom” and thegenerated hotword fingerprint of the utterance “OK Computer”. Thus, thecomparison between the hotword utterance and the query or commandutterance may inhibit an unauthorized user's ability to replay arecorded hotword and issue a new query or command with their own voice

A partial hotword may be detected, for example, as described in U.S.Pat. No. 8,768,712 B1, which is incorporate herein by reference; andmore specifically, the process of FIG. 3, some of the details of whichare depicted in FIG. 2A, each of which is incorporated herein byreference. In some implementations, after detecting a partial hotword,or during an utterance that follows the hotword, the device may output aunique ultrasonic audio clip, e.g., using frequency-shift keying, whichmay encode a unique token for recognition. If a previous token isrecognized as part of the hotword, the hotword may be rejected. A uniqueset of frequencies may be used to encode each token so that the tokenmay be detected when the device is outputting a new token.Alternatively, instead of the device detecting an encoded token, thedevice may detect any significant ultrasound audio other than in thefrequency bands the device is using for the new token. If anysignificant ultrasound audio is detected, the hotword may be rejected.

For example, as depicted in FIG. 1, the hotword detector 130 maycomprise a partial hotword detector 135. In addition, the audiosubsystem 120 may comprise an ultrasonic audio subsystem 125. Theultrasonic audio subsystem 125 may be configured to output the uniqueultrasonic audio clip. The ultrasonic audio subsystem 125 may beconfigured to receive and process ultrasonic audio samples.

FIG. 2B depicts a diagram of example processes for detecting andverifying a hotword, according to implementations of the invention. Forexample, as depicted in FIG. 2B, the audio subsystem 220 may receive theinitial portion of the audio data associated with the utterance “OK” at281. The initial portion of the audio data can include a first few audioframes of the utterance, or a first few hundred milliseconds of audiodata associated with the utterance. In some examples, the audiosubsystem 220 processes the utterance to generate waveform data thatincludes a portion of the utterance, or substantially a whole portion ofthe utterance. The audio subsystem 220 may identify one or more acousticfeatures of the initial portion of the audio data. In the illustratedexample, the audio subsystem 220 may identify acoustic featuresassociated with the initial portion of the audio data associated withthe utterance “OK.”

In the illustrated example, the hotword detector 230 initially receivesthe processed audio data associated with the utterance “OK,” e.g., aninitial portion of the audio data. The hotword detector 230 maydetermine that the received audio data corresponds to an initial portionof a hotword. Specifically, the hotword detector 230 includes thepartial hotword detector 225. The partial hotword detector 225 maydetermine that the initial portion of the audio data corresponds to aninitial portion of a hotword. In the illustrated example, the partialhotword detector 225 may determine that the initial portion of the audiodata associated with the utterance “OK” corresponds to an initialportion of a hotword “OK Computer.” In some implementations, the initialportion of a hotword includes less than the entire hotword. For example,the initial portion “OK” is less than the entire hotword “OK Computer.”The partial hotword detector 225 may compare the acoustic features ofthe initial portion of the audio data associated with the utterance “OK”to acoustic features associated with one or more hotwords stored in adatabase.

Based on the comparing of acoustic features, the initial portion of theaudio data associated with the utterance “OK” may be determined tocorrespond to an initial portion of a hotword stored in the database.For example, the hotword detector 230 may determine that the acousticfeatures of the initial portion of the audio data associated with theutterance “OK” corresponds to an initial portion of a hotword “OKComputer” at 282, based on the comparison of the acoustic features ofthe utterance “OK” and the acoustic features of the hotword “OKComputer.”

In some implementations, in response to initial portion of the audiodata associated with the utterance being determined to correspond to aninitial portion of a hotword, the ultrasonic audio subsystem 225 mayoutput unique ultrasonic audio clip at 283. In some implementations, theultrasonic audio subsystem 225 may output the unique ultrasonic audioclip after the full hotword has been received.

At 284, the audio subsystem 220 may receive audio data corresponding tothe portion of the utterance “Computer.” The audio subsystem 220 mayprocess the received audio data corresponding to the utterance“Computer” and provide the audio data to the hotword detector 230. At285, the hotword detector 230 may receive audio data corresponding tothe utterance “Computer” in addition to the audio data previouslyreceived corresponding to the utterance “OK” and determine whether theutterance “OK Computer” corresponds to a hotword for the device, forexample, based on the comparing of acoustic features as described above.

If the hotword detector 230 determines that the received utterance doesnot correspond to a hotword for the device, the hotword detector 230 mayprovide a signal indicating that a hotword has not been received, andthe process may restart with the audio subsystem 220 listening for anutterance. However, in response to the hotword detector 230 determiningthat the utterance “OK Computer” corresponds to a hotword for thedevice, the audio fingerprint generator 240 may generate an audiofingerprint of the utterance “OK Computer” at 286. The audio fingerprintof the utterance “OK Computer” that is generated by the audiofingerprint generator 240 may be stored at 287.

At 288, the replay attack engine 250 may receive the audio fingerprintof the utterance “OK Computer” generated by the audio fingerprintgenerator 240, and compare the generated audio fingerprint to hotwordfingerprints that are stored, for example, in a database. In particular,the replay attack engine 250 may access stored hotword fingerprints at289 for making the comparison with the audio fingerprint of theutterance “OK Computer” generated by the audio fingerprint generator240.

If the replay attack engine 150 determines no match 291 between theaudio fingerprint of the utterance “OK Computer” generated by the audiofingerprint generator 240 and one or more of the stored hotwordfingerprints, then access to the device may be granted or processing ofa query or command that follows the hotword may be enabled at 292. Ifthe replay attack engine 150 determines a match 290 between the audiofingerprint of the utterance “OK Computer” generated by the audiofingerprint generator 240 and one or more of the stored hotwordfingerprints, then access to the device may be disabled or limited at293 or the device may be prevented from unlocking, or waking, or thelike.

Thus, according to implementations of the disclosure, hotword or anyspeech-based replay attacks may be inhibited by verifying the uniquenessof each utterance. In particular, the most recent, last N, or allhotword utterances that were recognized by a particular device or by aparticular user may be recorded and stored. An audio fingerprint may begenerated and stored for each hotword utterance, and a comparison may beperformed between the audio fingerprint generated from a new utterancewith each previously recorded audio fingerprint to check whether thesame utterance audio has been previously used, indicating a replay. Forexample, when a hotword is recognized, an audio fingerprint of thehotword utterance may be generated and the derived fingerprint may becompared against fingerprints from previous utterances of the hotword.If a match is determined, the utterance may have been previously used,indicating a likely replay, and may be rejected. In response to theutterance being rejected, additional actions may be taken, e.g.,blocking the device, alerting the device owner, displaying a warning, orthe like, or any combination thereof. In addition, in certainimplementations, other signals, e.g., ultrasonic audio injection andcross-utterance verification, may be used to further limit theeffectiveness of replay attacks.

FIG. 3 depicts an example flowchart for detecting and verifying ahotword, according to implementations of the invention. As depicted inFIG. 3, the process 300 may comprise receiving audio data correspondingto an utterance at 310. The received audio data may be processed andthen used to determine whether the audio data associated with theutterance corresponds to a hotword at 320. For example, a comparison maybe made between audio characteristics of the received utterance andaudio characteristics of a hotword utterance for the device. Inparticular, a sequence of vectors may be generated from the receivedaudio data corresponding to an utterance, and the sequence of vectorsmay be compared to vectors of an utterance of the hotword associatedwith the device.

At 330, an audio fingerprint may be generated for the receivedutterance. For example, the audio data corresponding to the receivedutterance may be used to generate or compute a hotword audio fingerprintof the received hotword utterance. At 340, the hotword audio fingerprintmay be compared to stored hotword audio fingerprints. For example, adatabase of stored hotword audio fingerprints may be accessed and thehotword audio fingerprint may be compared to the stored hotword audiofingerprints, e.g., determining a similarity between the generatedhotword audio fingerprint and each of the stored hotword audiofingerprints.

The comparison between the generated hotword audio fingerprint and thestored hotword audio fingerprints may be used to determine if a matchexists between any of the stored hotword audio fingerprints and thegenerated hotword audio fingerprint at 350. For example, it may bedetermined whether a similarity between the generated hotword audiofingerprint and one or more of the stored hotword audio fingerprintssatisfies a predetermined threshold.

If it is determined that the generated hotword audio fingerprint matchesone or more of the stored hotword audio fingerprints (“YES”), thenaccess to the device may be disabled or prevented at 360. For example, amatch may indicate that an unauthorized user is replaying recorded audioof a hotword previously uttered by an authorized user in an attempt togain unauthorized access to the device.

If it is determined that the generated hotword audio fingerprint doesnot match one or more of the stored hotword audio fingerprints (“NO”),then access to the device may be enabled or an action may be executed at370. For example, a determination that there is no match may indicatethat the utterance is a new unique utterance of the hotword and is not areplay of recorded audio of a hotword previously uttered by theauthorized user.

According to implementations of the disclosure, the hotword detectionand speaker verification may be performed in either hardware or softwareor in a combination of both hardware and software. The fingerprint-basedhotword verification may be applied at the level of a single device, oracross multiple devices.

If hotword verification is applied at the level of a single device, theset of fingerprints from previous utterances may be stored locally onthe device. If the set of fingerprints from previous utterances arestored locally on the device, the fingerprinting and matching processand functions may occur after hotword detection, e.g., on the device'sdigital signal processor, before waking the device.

If hotword verification is applied across multiple devices, the set offingerprints from previous utterances may be stored on a server. If theset of fingerprints from previous utterances is stored on a server, thehotword may wake the device and the hotword utterance, or the audiofingerprint of the hotword utterance, may be sent to the same serverthat is used to perform recognition of the subsequent query or command.The server may verify the uniqueness of the hotword utterance, and mayreturn a status that indicates whether the query or command should beallowed or should be rejected. Alternatively, if hotword verification isapplied across multiple devices, the set of fingerprints from previousutterances may be synced across the multiple devices to enable theverification to be performed on the client device

FIG. 4 shows an example of a generic computer device 400 and a genericmobile computer device 450, which may be used with the techniquesdescribed here. Computing device 400 is intended to represent variousforms of digital computers, such as laptops, desktops, workstations,personal digital assistants, servers, blade servers, mainframes, andother appropriate computers. Computing device 450 is intended torepresent various forms of mobile devices, such as personal digitalassistants, cellular telephones, smartphones, and other similarcomputing devices. The components shown here, their connections andrelationships, and their functions, are meant to be exemplary only, andare not meant to limit implementations of the inventions describedand/or claimed in this document.

Computing device 400 includes a processor 402, memory 404, a storagedevice 406, a high-speed interface 408 connecting to memory 404 andhigh-speed expansion ports 410, and a low speed interface 412 connectingto low speed bus 414 and storage device 406. Each of the components 402,404, 406, 408, 410, and 412, are interconnected using various busses,and may be mounted on a common motherboard or in other manners asappropriate. The processor 402 may process instructions for executionwithin the computing device 400, including instructions stored in thememory 404 or on the storage device 406 to display graphical informationfor a GUI on an external input/output device, such as display 416coupled to high speed interface 408. In other implementations, multipleprocessors and/or multiple buses may be used, as appropriate, along withmultiple memories and types of memory. Also, multiple computing devices400 may be connected, with each device providing portions of thenecessary operations (e.g., as a server bank, a group of blade servers,or a multi-processor system).

The memory 404 stores information within the computing device 400. Inone implementation, the memory 404 is a volatile memory unit or units.In another implementation, the memory 404 is a non-volatile memory unitor units. The memory 404 may also be another form of computer-readablemedium, such as a magnetic or optical disk.

The storage device 406 is capable of providing mass storage for thecomputing device 400. In one implementation, the storage device 406 maybe or contain a computer-readable medium, such as a floppy disk device,a hard disk device, an optical disk device, or a tape device, a flashmemory or other similar solid state memory device, or an array ofdevices, including devices in a storage area network or otherconfigurations. A computer program product may be tangibly embodied inan information carrier. The computer program product may also containinstructions that, when executed, perform one or more methods, such asthose described above. The information carrier is a computer- ormachine-readable medium, such as the memory 404, the storage device 406,or a memory on processor 402.

The high speed controller 408 manages bandwidth-intensive operations forthe computing device 400, while the low speed controller 412 manageslower bandwidth-intensive operations. Such allocation of functions isexemplary only. In one implementation, the high-speed controller 408 iscoupled to memory 404, display 416 (e.g., through a graphics processoror accelerator), and to high-speed expansion ports 410, which may acceptvarious expansion cards (not shown). In the implementation, low-speedcontroller 412 is coupled to storage device 406 and low-speed expansionport 414. The low-speed expansion port, which may include variouscommunication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet)may be coupled to one or more input/output devices, such as a keyboard,a pointing device, a scanner, or a networking device such as a switch orrouter, e.g., through a network adapter.

The computing device 400 may be implemented in a number of differentforms, as shown in the figure. For example, it may be implemented as astandard server 420, or multiple times in a group of such servers. Itmay also be implemented as part of a rack server system 424. Inaddition, it may be implemented in a personal computer such as a laptopcomputer 422. Alternatively, components from computing device 400 may becombined with other components in a mobile device (not shown), such asdevice 450. Each of such devices may contain one or more of computingdevice 400, 450, and an entire system may be made up of multiplecomputing devices 400, 450 communicating with each other.

Computing device 450 includes a processor 452, memory 464, aninput/output device such as a display 454, a communication interface466, and a transceiver 468, among other components. The device 450 mayalso be provided with a storage device, such as a microdrive or otherdevice, to provide additional storage. Each of the components 450, 452,464, 454, 466, and 468, are interconnected using various buses, andseveral of the components may be mounted on a common motherboard or inother manners as appropriate.

The processor 452 may execute instructions within the computing device640, including instructions stored in the memory 464. The processor maybe implemented as a chipset of chips that include separate and multipleanalog and digital processors. The processor may provide, for example,for coordination of the other components of the device 450, such ascontrol of user interfaces, applications run by device 450, and wirelesscommunication by device 450.

Processor 452 may communicate with a user through control interface 648and display interface 456 coupled to a display 454. The display 454 maybe, for example, a TFT LCD (Thin-Film-Transistor Liquid Crystal Display)or an OLED (Organic Light Emitting Diode) display, or other appropriatedisplay technology. The display interface 456 may comprise appropriatecircuitry for driving the display 454 to present graphical and otherinformation to a user. The control interface 458 may receive commandsfrom a user and convert them for submission to the processor 452. Inaddition, an external interface 462 may be provide in communication withprocessor 452, so as to enable near area communication of device 450with other devices. External interface 462 may provide, for example, forwired communication in some implementations, or for wirelesscommunication in other implementations, and multiple interfaces may alsobe used.

The memory 464 stores information within the computing device 450. Thememory 464 may be implemented as one or more of a computer-readablemedium or media, a volatile memory unit or units, or a non-volatilememory unit or units. Expansion memory 454 may also be provided andconnected to device 450 through expansion interface 452, which mayinclude, for example, a SIMM (Single In Line Memory Module) cardinterface. Such expansion memory 454 may provide extra storage space fordevice 450, or may also store applications or other information fordevice 450. Specifically, expansion memory 454 may include instructionsto carry out or supplement the processes described above, and mayinclude secure information also. Thus, for example, expansion memory 454may be provide as a security module for device 450, and may beprogrammed with instructions that permit secure use of device 450. Inaddition, secure applications may be provided via the SIMM cards, alongwith additional information, such as placing identifying information onthe SIMM card in a non-hackable manner.

The memory may include, for example, flash memory and/or NVRAM memory,as discussed below. In one implementation, a computer program product istangibly embodied in an information carrier. The computer programproduct contains instructions that, when executed, perform one or moremethods, such as those described above. The information carrier is acomputer- or machine-readable medium, such as the memory 464, expansionmemory 454, memory on processor 452, or a propagated signal that may bereceived, for example, over transceiver 468 or external interface 462.

Device 450 may communicate wirelessly through communication interface466, which may include digital signal processing circuitry wherenecessary. Communication interface 466 may provide for communicationsunder various modes or protocols, such as GSM voice calls, SMS, EMS, orMMS messaging, CDMA, TDMA, PDC, WCDMA, CDMA2000, or GPRS, among others.Such communication may occur, for example, through radio-frequencytransceiver 468. In addition, short-range communication may occur, suchas using a Bluetooth, WiFi, or other such transceiver (not shown). Inaddition, GPS (Global Positioning System) receiver module 450 mayprovide additional navigation- and location-related wireless data todevice 450, which may be used as appropriate by applications running ondevice 450.

Device 450 may also communicate audibly using audio codec 460, which mayreceive spoken information from a user and convert it to usable digitalinformation. Audio codec 460 may likewise generate audible sound for auser, such as through a speaker, e.g., in a handset of device 450. Suchsound may include sound from voice telephone calls, may include recordedsound (e.g., voice messages, music files, etc.) and may also includesound generated by applications operating on device 450.

The computing device 450 may be implemented in a number of differentforms, as shown in the figure. For example, it may be implemented as acellular telephone 480. It may also be implemented as part of asmartphone 482, personal digital assistant, or other similar mobiledevice.

A number of implementations have been described. Nevertheless, it willbe understood that various modifications may be made without departingfrom the spirit and scope of the disclosure. For example, various formsof the flows shown above may be used, with steps re-ordered, added, orremoved.

Implementations of the invention and all of the functional operationsdescribed in this specification can be implemented in digital electroniccircuitry, or in computer software, firmware, or hardware, including thestructures disclosed in this specification and their structuralequivalents, or in combinations of one or more of them. Implementationsof the invention can be implemented as one or more computer programproducts, i.e., one or more modules of computer program instructionsencoded on a computer readable medium for execution by, or to controlthe operation of, data processing apparatus. The computer readablemedium can be a machine-readable storage device, a machine-readablestorage substrate, a memory device, a composition of matter effecting amachine-readable propagated signal, or a combination of one or more ofthem. The term “data processing apparatus” encompasses all apparatus,devices, and machines for processing data, including by way of example aprogrammable processor, a computer, or multiple processors or computers.The apparatus can include, in addition to hardware, code that creates anexecution environment for the computer program in question, e.g., codethat constitutes processor firmware, a protocol stack, a databasemanagement system, an operating system, or a combination of one or moreof them. A propagated signal is an artificially generated signal, e.g.,a machine-generated electrical, optical, or electromagnetic signal thatis generated to encode information for transmission to suitable receiverapparatus.

A computer program (also known as a program, software, softwareapplication, script, or code) can be written in any form of programminglanguage, including compiled or interpreted languages, and it can bedeployed in any form, including as a stand alone program or as a module,component, subroutine, or other unit suitable for use in a computingenvironment. A computer program does not necessarily correspond to afile in a file system. A program can be stored in a portion of a filethat holds other programs or data (e.g., one or more scripts stored in amarkup language document), in a single file dedicated to the program inquestion, or in multiple coordinated files (e.g., files that store oneor more modules, sub programs, or portions of code). A computer programcan be deployed to be executed on one computer or on multiple computersthat are located at one site or distributed across multiple sites andinterconnected by a communication network.

These computer programs (also known as programs, software, softwareapplications or code) include machine instructions for a programmableprocessor, and may be implemented in a high-level procedural and/orobject-oriented programming language, and/or in assembly/machinelanguage. As used herein, the terms “machine-readable medium”“computer-readable medium” refers to any computer program product,apparatus and/or device (e.g., magnetic discs, optical disks, memory,Programmable Logic Devices (PLDs)) used to provide machine instructionsand/or data to a programmable processor, including a machine-readablemedium that receives machine instructions as a machine-readable signal.The term “machine-readable signal” refers to any signal used to providemachine instructions and/or data to a programmable processor.

The processes and logic flows described in this specification can beperformed by one or more programmable processors executing one or morecomputer programs to perform functions by operating on input data andgenerating output. The processes and logic flows can also be performedby, and apparatus can also be implemented as, special purpose logiccircuitry, e.g., an FPGA (field programmable gate array) or an ASIC(application specific integrated circuit).

Processors suitable for the execution of a computer program include, byway of example, both general and special purpose microprocessors, andany one or more processors of any kind of digital computer. Generally, aprocessor will receive instructions and data from a read only memory ora random access memory or both. The essential elements of a computer area processor for performing instructions and one or more memory devicesfor storing instructions and data. Generally, a computer will alsoinclude, or be operatively coupled to receive data from or transfer datato, or both, one or more mass storage devices for storing data, e.g.,magnetic, magneto optical disks, or optical disks. However, a computerneed not have such devices. Moreover, a computer can be embedded inanother device, e.g., a tablet computer, a mobile telephone, a personaldigital assistant (PDA), a mobile audio player, a Global PositioningSystem (GPS) receiver, to name just a few. Computer readable mediasuitable for storing computer program instructions and data include allforms of non volatile memory, media and memory devices, including by wayof example semiconductor memory devices, e.g., EPROM, EEPROM, and flashmemory devices; magnetic disks, e.g., internal hard disks or removabledisks; magneto optical disks; and CD ROM and DVD-ROM disks. Theprocessor and the memory can be supplemented by, or incorporated in,special purpose logic circuitry.

To provide for interaction with a user, implementations of the inventioncan be implemented on a computer having a display device, e.g., a CRT(cathode ray tube) or LCD (liquid crystal display) monitor, fordisplaying information to the user and a keyboard and a pointing device,e.g., a mouse or a trackball, by which the user can provide input to thecomputer. Other kinds of devices can be used to provide for interactionwith a user as well; for example, feedback provided to the user can beany form of sensory feedback, e.g., visual feedback, auditory feedback,or tactile feedback; and input from the user can be received in anyform, including acoustic, speech, or tactile input.

Implementations of the invention can be implemented in a computingsystem that includes a back end component, e.g., as a data server, orthat includes a middleware component, e.g., an application server, orthat includes a front end component, e.g., a client computer having agraphical user interface or a Web browser through which a user caninteract with an implementation of the invention, or any combination ofone or more such back end, middleware, or front end components. Thecomponents of the system can be interconnected by any form or medium ofdigital data communication, e.g., a communication network. Examples ofcommunication networks include a local area network (“LAN”) and a widearea network (“WAN”), e.g., the Internet.

The computing system can include clients and servers. A client andserver are generally remote from each other and typically interactthrough a communication network. The relationship of client and serverarises by virtue of computer programs running on the respectivecomputers and having a client-server relationship to each other.

While this disclosure contains many specifics, these should not beconstrued as limitations on the scope of the invention or of what may beclaimed, but rather as descriptions of features specific to particularimplementations of the invention. Certain features that are described inthis specification in the context of separate implementations can alsobe implemented in combination in a single implementation. Conversely,various features that are described in the context of a singleimplementation can also be implemented in multiple implementationsseparately or in any suitable subcombination. Moreover, althoughfeatures may be described above as acting in certain combinations andeven initially claimed as such, one or more features from a claimedcombination can in some cases be excised from the combination, and theclaimed combination may be directed to a subcombination or variation ofa subcombination.

Similarly, while operations are depicted in the drawings in a particularorder, this should not be understood as requiring that such operationsbe performed in the particular order shown or in sequential order, orthat all illustrated operations be performed, to achieve desirableresults. In certain circumstances, multitasking and parallel processingmay be advantageous. Moreover, the separation of various systemcomponents in the implementations described above should not beunderstood as requiring such separation in all implementations, and itshould be understood that the described program components and systemscan generally be integrated together in a single software product orpackaged into multiple software products.

In each instance where an HTML file is mentioned, other file types orformats may be substituted. For instance, an HTML file may be replacedby an XML, JSON, plain text, or other types of files. Moreover, where atable or hash table is mentioned, other data structures (such asspreadsheets, relational databases, or structured files) may be used.

Various implementations of the systems and techniques described here maybe realized in digital electronic circuitry, integrated circuitry,specially designed ASICs (application specific integrated circuits),computer hardware, firmware, software, and/or combinations thereof.These various implementations may include implementation in one or morecomputer programs that are executable and/or interpretable on aprogrammable system including at least one programmable processor, whichmay be special or general purpose, coupled to receive data andinstructions from, and to transmit data and instructions to, a storagesystem, at least one input device, and at least one output device.

Thus, particular implementations of the present disclosure have beendescribed. Other implementations are within the scope of the followingclaims. For example, the actions recited in the claims can be performedin a different order and still achieve desirable results. A number ofimplementations have been described. Nevertheless, it will be understoodthat various modifications may be made without departing from the spiritand scope of the disclosure. For example, various forms of the flowsshown above may be used, with steps re-ordered, added, or removed.Accordingly, other implementations are within the scope of the followingclaims.

What is claimed is:
 1. (canceled)
 2. A computer-implemented methodcomprising: receiving, by a mobile computing device, an audio inputcorresponding to a recording of an utterance of a hotword that waspreviously input to the same mobile computing device; and in response toreceiving, by the mobile computing device, the audio input correspondingto a recording of an utterance of a hotword that was previously input tothe same mobile computing device, disabling, by the mobile computingdevice, access to one or more resources of the mobile computing device.3. The computer-implemented method of claim 2, wherein the utterance ofthe hotword that was previously input is stored in a database.
 4. Thecomputer-implemented method of claim 2, wherein the hotword is aparticular term that triggers semantic interpretation of an additionalterm of one or more terms that follow the particular term.
 5. Thecomputer-implemented method of claim 2, further comprising: determiningthat the audio input corresponds to an utterance of a hotword that waspreviously input based on a similarity between the audio input and oneor more stored utterances of the hotword.
 6. The computer-implementedmethod of claim 2, wherein disabling, by the mobile computing device,access to one or more resources of the mobile computing device comprisesone or more of: preventing the mobile computing device from beingunlocked, locking the mobile computing device, initiating anauthentication process, and preventing the mobile computing device fromwaking.
 7. The computer-implemented method of claim 2, furthercomprising: receiving, by the mobile computing device, additional audiodata corresponding to a voice command or query; and determining a typeof the voice command or query.
 8. The computer-implemented method ofclaim 2, further comprising: storing the audio input corresponding to arecording of an utterance of a hotword that was previously input to thesame mobile computing device in a database.
 9. A system comprising oneor more computers and one or more storage devices storing instructionsthat are operable, when executed by the one or more computers, to causethe one or more computers to perform operations comprising: receiving,by a mobile computing device, an audio input corresponding to arecording of an utterance of a hotword that was previously input to thesame mobile computing device; and in response to receiving, by themobile computing device, the audio input corresponding to a recording ofan utterance of a hotword that was previously input to the same mobilecomputing device, disabling, by the mobile computing device, access toone or more resources of the mobile computing device.
 10. The system ofclaim 9, wherein the utterance of the hotword that was previously inputis stored in a database.
 11. The system of claim 9, wherein the hotwordis a particular term that triggers semantic interpretation of anadditional term of one or more terms that follow the particular term.12. The system of claim 9, further comprising: determining that theaudio input corresponds to an utterance of a hotword that was previouslyinput based on a similarity between the audio input and one or morestored utterances of the hotword.
 13. The system of claim 9, whereindisabling, by the mobile computing device, access to one or moreresources of the mobile computing device comprises one or more of:preventing the mobile computing device from being unlocked, locking themobile computing device, initiating an authentication process, andpreventing the mobile computing device from waking.
 14. The system ofclaim 9, further comprising: receiving, by the mobile computing device,additional audio data corresponding to a voice command or query; anddetermining a type of the voice command or query.
 15. The system ofclaim 9, further comprising: storing the audio input corresponding to arecording of an utterance of a hotword that was previously input to thesame mobile computing device in a database.
 16. A computer-readablestorage device storing software comprising instructions executable byone or more computers which, upon such execution, cause the one or morecomputers to perform operations comprising: receiving, by a mobilecomputing device, an audio input corresponding to a recording of anutterance of a hotword that was previously input to the same mobilecomputing device; and in response to receiving, by the mobile computingdevice, the audio input corresponding to a recording of an utterance ofa hotword that was previously input to the same mobile computing device,disabling, by the mobile computing device, access to one or moreresources of the mobile computing device.
 17. The computer-readablestorage device of claim 16, wherein the utterance of the hotword thatwas previously input is stored in a database.
 18. The computer-readablestorage device of claim 16, wherein the hotword is a particular termthat triggers semantic interpretation of an additional term of one ormore terms that follow the particular term.
 19. The computer-readablestorage device of claim 16, further comprising: determining that theaudio input corresponds to an utterance of a hotword that was previouslyinput based on a similarity between the audio input and one or morestored utterances of the hotword.
 20. The computer-readable storagedevice of claim 16, wherein disabling, by the mobile computing device,access to one or more resources of the mobile computing device comprisesone or more of: preventing the mobile computing device from beingunlocked, locking the mobile computing device, initiating anauthentication process, and preventing the mobile computing device fromwaking.
 21. The computer-readable storage device of claim 16, furthercomprising: receiving, by the mobile computing device, additional audiodata corresponding to a voice command or query; and determining a typeof the voice command or query.